(global.webpackJsonp = global.webpackJsonp || []).push([ [ "components/banner/index" ], {
    "1e69": function(n, e, t) {
        var a = t("57a9");
        t.n(a).a;
    },
    2518: function(n, e, t) {
        var a = t("4ea4").default;
        Object.defineProperty(e, "__esModule", {
            value: !0
        }), e.default = void 0;
        var r = a(t("ded3")), o = t("fd0e"), u = t("665c"), i = t("554f"), d = t("48b8"), c = {};
        c.props = {
            adLocation: {
                type: String,
                default: "未找到相关页面"
            },
            adsType: {
                type: Number,
                default: 1001
            },
            usedAdTypeText: {
                type: String,
                default: ""
            },
            jumpParams: {
                type: Object,
                default: function() {
                    return {};
                }
            },
            reportParams: {
                type: Object,
                default: function() {
                    return {};
                }
            },
            closable: {
                type: Boolean,
                default: !1
            },
            height: {
                type: Number,
                default: 170
            },
            borderRadius: {
                type: Number,
                default: 0
            }
        }, c.setup = function(n, e) {
            var t = (0, u.useState)(), a = t.userInfo, c = t.selectedService, l = (0, u.useGetters)(), s = l.startAddress, f = (l.isLogined, 
            n), p = e.emit, b = (0, o.reactive)({
                bannerList: [],
                bannerShow: !1,
                bannerCurrent: 0,
                autoPlay: !0,
                initLoad: !1,
                oldCityId: 0,
                oldToken: ""
            }), m = (0, o.computed)(function() {
                return b.bannerList.length > 1;
            }), h = (0, o.computed)(function() {
                var n = f.height, e = f.borderRadius;
                return {
                    height: "".concat(n, "rpx"),
                    borderRadius: "".concat(e, "rpx")
                };
            }), v = (0, o.computed)(function() {
                return {
                    height: "".concat(f.height, "rpx")
                };
            }), g = (0, o.computed)(function() {
                var n;
                return 1 === (null === (n = b.bannerList[0]) || void 0 === n ? void 0 : n.is_support_close);
            }), y = (0, o.computed)(function() {
                return f.usedAdTypeText || (0, i.getAdTypeText)(f.adsType);
            });
            function w() {
                var n = !(arguments.length > 0 && void 0 !== arguments[0]) || arguments[0];
                if (n || !b.initLoad) {
                    var e, t, r = (null === (e = s.value) || void 0 === e ? void 0 : e.city_id) || 1002, o = (null === (t = a.value) || void 0 === t ? void 0 : t.token) || 0;
                    if (b.bannerList.length > 0 && Number(b.oldCityId) === Number(r) && b.oldToken === o) return;
                    var u = {
                        type: f.adsType
                    };
                    1 === c.value && (u.tab_type = 1), (0, i.getAdList)(u).then(function(n) {
                        b.initLoad = !1, b.oldCityId = r, b.oldToken = o, b.bannerList = n || [], b.bannerShow = n.length > 0, 
                        b.bannerCurrent = 0, b.bannerShow && _();
                    });
                }
            }
            function _() {
                var n = b.bannerList, e = f.adLocation, t = f.reportParams;
                n.forEach(function(n) {
                    console.info("banner曝光---".concat(n.title)), i.adUtils.reportAdShow(n, y.value, e, t);
                });
            }
            function L() {
                var n = b.bannerList, e = b.bannerCurrent, t = f.reportParams, a = f.adLocation, o = n[e];
                i.adUtils.reportAdClose(o, y.value, a, (0, r.default)({
                    module_name: "关闭"
                }, t)), b.bannerShow = !1;
            }
            return (0, o.watch)(function() {
                return b.bannerShow;
            }, function(n) {
                (0, o.nextTick)(function() {
                    p("show", n);
                });
            }), (0, o.onBeforeMount)(function() {
                b.initLoad = !0, w();
            }), Object.assign({
                data: b,
                showDots: m,
                bannerStyle: h,
                bannerImgStyle: v,
                selfClosable: g,
                handleBannerChange: function(n) {
                    (0, o.nextTick)(function() {
                        b.bannerCurrent = n.detail.current;
                    });
                },
                handleBannerTap: function(n) {
                    var e = b.bannerList, t = f.jumpParams, a = f.adLocation, o = f.reportParams, u = e[n.currentTarget.dataset.index];
                    i.adUtils.handleAdTap((0, r.default)((0, r.default)({}, u), {}, {
                        jump_url: (0, d.appendUrlParams)(u.jump_url, t)
                    }), y.value, a, !1, o);
                },
                close: L
            }, {
                init: w,
                close: L
            });
        }, c.components = Object.assign({
            SwiperDot: function() {
                t.e("components/swiper-dot/swiper-dot").then(function() {
                    return resolve(t("5e60"));
                }.bind(null, t)).catch(t.oe);
            }
        }, c.components);
        var l = c;
        e.default = l;
    },
    "3c2a": function(n, e, t) {
        t.d(e, "b", function() {
            return r;
        }), t.d(e, "c", function() {
            return o;
        }), t.d(e, "a", function() {
            return a;
        });
        var a = {
            swiperDot: function() {
                return t.e("components/swiper-dot/swiper-dot").then(t.bind(null, "5e60"));
            }
        }, r = function() {
            var n = this, e = (n.$createElement, n._self._c, n.data.bannerShow ? n.__get_style([ n.bannerStyle ]) : null), t = n.data.bannerShow ? n.__map(n.data.bannerList, function(e, t) {
                return {
                    $orig: n.__get_orig(e),
                    s1: n.__get_style([ n.bannerImgStyle ])
                };
            }) : null, a = n.data.bannerShow && n.showDots ? n.data.bannerList.length : null;
            n.$mp.data = Object.assign({}, {
                $root: {
                    s0: e,
                    l0: t,
                    g0: a
                }
            });
        }, o = [];
    },
    "48c9": function(n, e, t) {
        t.r(e);
        var a = t("2518"), r = t.n(a);
        for (var o in a) [ "default" ].indexOf(o) < 0 && function(n) {
            t.d(e, n, function() {
                return a[n];
            });
        }(o);
        e.default = r.a;
    },
    "57a9": function(n, e, t) {},
    d3ed: function(n, e, t) {
        t.r(e);
        var a = t("3c2a"), r = t("48c9");
        for (var o in r) [ "default" ].indexOf(o) < 0 && function(n) {
            t.d(e, n, function() {
                return r[n];
            });
        }(o);
        t("1e69");
        var u = t("f0c5"), i = Object(u.a)(r.default, a.b, a.c, !1, null, "d2731f40", null, !1, a.a, void 0);
        e.default = i.exports;
    }
} ]), (global.webpackJsonp = global.webpackJsonp || []).push([ "components/banner/index-create-component", {
    "components/banner/index-create-component": function(n, e, t) {
        t("543d").createComponent(t("d3ed"));
    }
}, [ [ "components/banner/index-create-component" ] ] ]);